package com.weds.domain_service.producer;

import com.weds.data_sync_api.api.top.ApiProducer;
import com.weds.data_sync_api.entity.ProducerEntity;
import com.weds.domain_service.domain.ScUser;
import com.weds.domain_service.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description
 * @Author lihw
 * @Date 2024/2/27 10:02
 */
@Component
public class UserProducer implements ApiProducer<ScUser> {

    @Autowired
    UserService userService;

    @Override
    public <P extends ProducerEntity> List<ScUser> producer(P producerParam) {

        return userService.getUserList();
    }
}
